import axios  from "axios"
import qs from 'qs'
const instance = axios.create()

const myaxios = {
  get(url,params){
   return instance({
      url,
      params,
      method:'GET'
    })
  },
  post(url,params){
    
    return instance({
      url,
      data:qs.stringify(params),
      method:'POST'
    })
  }
}
export default myaxios